//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_client_f.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"Position":"","Client_no":"","Client_name":"","Client_type":"","Client_flag":"","Client_man":"","Client_tel":"","Province":"","City":"","District":"","Client_addr":"","Remark":""},
		editFormOptions: [
                               {"type":"group"},
                               {"title":"客户编码","field":"Client_no","type":"text"},
                               {"title":"客户名称","required":true,"field":"Client_name","type":"text"},
                               {"key":"客户类型","data":[],"title":"客户类型","field":"Client_type","type":"select"},
							   {"key":"客户状态","data":[],"title":"客户标志","field":"Client_flag","type":"select"},
                               {"type":"group"},
                               {"title":"联系人","field":"Client_man","type":"text"},
                               {"title":"联系电话","field":"Client_tel","type":"text"},
							   {"title":"联系人职位","field":"Position","type":"text"},
                               {"type":"group"},
                               {"key":"省","data":[],"title":"省","field":"Province","type":"select"},
                               {"key":"省","data":[],"title":"市","field":"City","type":"select"},
                               {"key":"省","data":[],"title":"区县","field":"District","type":"select"},
                               {"type":"group"},
                               {"title":"地址","field":"Client_addr","type":"text"},
                               {"type":"group"},
                               {"title":"备注","field":"Remark","type":"textarea"}],
		searchFormFields: {"Client_no":"","Client_name":"","Client_man":"","Position":""},
		searchFormOptions: [{"title":"联系人职位","field":"Position","type":"text"},{"type":"group"},{"title":"客户编码","field":"Client_no","type":"like"},{"title":"客户名称","field":"Client_name","type":"like"},{"title":"联系人","field":"Client_man","type":"like"}],
		columns: [{field:'Client_no',title:'客户编码',type:'string'},
                       {field:'Client_name',title:'客户名称',type:'string',link:true},
                       {field:'Client_type',title:'客户类型',type:'int',bind:{ key:'客户类型',data:[]}},
                       {field:'Client_flag',title:'客户标志',type:'string',bind:{ key:'客户状态',data:[]}},
                       {field:'Client_man',title:'联系人',type:'string'},
                       {field:'Client_tel',title:'联系电话',type:'string'},
                       {field:'Position',title:'联系人职位',type:'string'},
                       {field:'Province',title:'省',type:'string',bind:{ key:'省',data:[]}},
                       {field:'City',title:'市',type:'string',bind:{ key:'省',data:[]}},
                       {field:'District',title:'区县',type:'string',bind:{ key:'省',data:[]}},
                       {field:'Client_addr',title:'地址',type:'string'}],
		table: {
			key: 'Client_id',
			footer: "Foots",
			cnName: '销售客户',
			name: 'q_client_f',
			url: "/q_client_f/",
			sortName: "Client_no"
		}
	}
}
